package weaver.aiyh_pcn.workflow_to_customer.model;

/**
 * @author EBU7-dev1-ayh
 * @create 2021/8/11 0011 14:25
 * 配置主表信息
 */


public class MainResult {
	private int mainId;
	private int workflowType;
	private int isOutUser;
	private int isSellChange;
	private int isCustomerAddress;
	private String customerId;
	private String updateInsert;
	private int updateMark;
	private int insertMark;
	private int changeSetting;
	private int managerType;
	private int customerManager;
	private String managerField;
	private String updateInsertTable;
	private int willWrite;
	private String willWriteField;
	private String willWriteTable;

	public int getWillWrite() {
		return willWrite;
	}

	public String getWillWriteField() {
		return willWriteField;
	}

	public String getWillWriteTable() {
		return willWriteTable;
	}

	@Override
	public String toString() {
		return "MainResult{" +
				"mainId=" + mainId +
				", workflowType=" + workflowType +
				", isOutUser=" + isOutUser +
				", isSellChange=" + isSellChange +
				", isCustomerAddress=" + isCustomerAddress +
				", customerId='" + customerId + '\'' +
				", updateInsert='" + updateInsert + '\'' +
				", updateMark=" + updateMark +
				", insertMark=" + insertMark +
				", changeSetting=" + changeSetting +
				", managerType=" + managerType +
				", customerManager=" + customerManager +
				", managerField='" + managerField + '\'' +
				", updateInsertTable='" + updateInsertTable + '\'' +
				", willWriteTable='" + willWriteTable + '\'' +
				", willWrite=" + willWrite +
				", willWriteField='" + willWriteField + '\'' +
				'}';
	}

	public String getUpdateInsertTable() {
		return updateInsertTable;
	}

	public MainResult() {
	}


	public MainResult(Builder builder) {
		this.mainId = builder.mainId;
		this.workflowType = builder.workflowType;
		this.isOutUser = builder.isOutUser;
		this.isSellChange = builder.isSellChange;
		this.isCustomerAddress = builder.isCustomerAddress;
		this.customerId = builder.customerId;
		this.updateInsert = builder.updateInsert;
		this.updateMark = builder.updateMark;
		this.insertMark = builder.insertMark;
		this.changeSetting = builder.changeSetting;
		this.managerType = builder.managerType;
		this.customerManager = builder.customerManager;
		this.managerField = builder.managerField;
		this.updateInsertTable = builder.updateInsertTable;
		this.willWrite = builder.willWrite;
		this.willWriteField = builder.willWriteField;
		this.willWriteTable = builder.willWriteTable;
	}

	public static Builder builder(){
		return new Builder();
	}

	public static class Builder{
		private int mainId;
		private int workflowType;
		private int isOutUser;
		private int isSellChange;
		private int isCustomerAddress;
		private String customerId;
		private String updateInsert;
		private int updateMark;
		private int insertMark;
		private int changeSetting;
		private int managerType;
		private int customerManager;
		private String managerField;
		private String updateInsertTable;
		private int willWrite;
		private String willWriteField;
		private String willWriteTable;

		public Builder willWrite(int willWrite) {
			this.willWrite = willWrite;
			return this;
		}

		public Builder willWriteTable(String willWriteTable) {
			this.willWriteTable = willWriteTable;
			return this;
		}

		public Builder willWriteField(String willWriteField) {
			this.willWriteField = willWriteField;
			return this;
		}

		public Builder managerType(int managerType) {
			this.managerType = managerType;
			return this;
		}

		public Builder customerManager(int customerManager) {
			this.customerManager = customerManager;
			return this;
		}

		public Builder managerField(String managerField) {
			this.managerField = managerField;
			return this;
		}

		public Builder updateInsertTable(String updateInsertTable) {
			this.updateInsertTable = updateInsertTable;
			return this;
		}

		public Builder mainId(int mainId) {
			this.mainId = mainId;
			return this;
		}

		public Builder workflowType(int workflowType) {
			this.workflowType = workflowType;
			return this;
		}

		public Builder isOutUser(int isOutUser) {
			this.isOutUser = isOutUser;
			return this;
		}

		public Builder isSellChange(int isSellChange) {
			this.isSellChange = isSellChange;
			return this;
		}

		public Builder isCustomerAddress(int isCustomerAddress) {
			this.isCustomerAddress = isCustomerAddress;
			return this;
		}

		public Builder customerId(String customerId) {
			this.customerId = customerId;
			return this;
		}

		public Builder updateInsert(String updateInsert) {
			this.updateInsert = updateInsert;
			return this;
		}

		public Builder updateMark(int updateMark) {
			this.updateMark = updateMark;
			return this;
		}

		public Builder insertMark(int insertMark) {
			this.insertMark = insertMark;
			return this;
		}
		public Builder changeSetting(int changeSetting) {
			this.changeSetting = changeSetting;
			return this;
		}

		public MainResult build(){
			return new MainResult(this);
		}
	}

	public int getMainId() {
		return mainId;
	}

	public int getWorkflowType() {
		return workflowType;
	}

	public int getIsOutUser() {
		return isOutUser;
	}

	public int getIsSellChange() {
		return isSellChange;
	}

	public int getIsCustomerAddress() {
		return isCustomerAddress;
	}

	public String getCustomerId() {
		return customerId;
	}

	public String getUpdateInsert() {
		return updateInsert;
	}

	public int getUpdateMark() {
		return updateMark;
	}

	public int getInsertMark() {
		return insertMark;
	}

	public int getChangeSetting() {
		return changeSetting;
	}

	public int getManagerType() {
		return managerType;
	}

	public int getCustomerManager() {
		return customerManager;
	}

	public String getManagerField() {
		return managerField;
	}

}
